package com.dongecloud.openfeign;

import com.donge.bean.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

//@FeignClient("provider")
public interface HelloServiceNoExtends {
    @GetMapping("/hello")
    String hello();

    @GetMapping("/hello1")
    String hello1(@RequestParam("name") String name);

    @PostMapping("/user2")
    User addUser2(@RequestBody User user);

    @PutMapping("/user1")
    void updateUser2(@RequestBody User user);

    @DeleteMapping("/user2/{id}")
    void deleteUser2(@PathVariable("id") Integer id);
}
